import request from '@/utils/request'

const curryRequest = (url, method, data) => {
  console.log('url, method, data===', url, method, data);
  return request(url, method, data)
}

export function apiLogin(data) {
  return curryRequest('/user/login', 'post', data)
}

export function apiLogout() {
  return curryRequest('/user/logout', 'get')
}

export function apiChangePassword(data) {
  return curryRequest('/user/changePassword', 'post', data)
}
